package com.happok.onlineclass.usermanagement.user.service;

import com.happok.onlineclass.usermanagement.user.dto.UpdateUsersPermissionDTO;
import com.happok.onlineclass.usermanagement.user.dto.UserAuthorityDTO;

import javax.servlet.http.HttpServletRequest;

/**
 * 功能说明
 *
 * @author : chenac
 * @version : v1.0
 * @date : 2021/8/17 9:32
 * @updateUser : chenac
 * @updateTime : 2021/8/17 9:32
 * @updateRemark : 无
 * @since : Springboot 2.5.2
 */
public interface UserPermissionService {
    /**
     * 更新用户权限
     *
     * @param updateUsersPermissionDTO
     * @author: chenac
     * @date:  9:37
     * @execption:
     * @return: void
     */
    void updateUserPermission(UpdateUsersPermissionDTO updateUsersPermissionDTO);

    /**
     * 查询用户权限
     *
     * @param user
     * @author: chenac
     * @date:  16:30
     * @execption:
     * @return: void
     */
    UserAuthorityDTO getUserPermission(String user, HttpServletRequest req);
}